﻿using Nasty.Core.Entity;
using SqlSugar;

namespace Nasty.Core.Entity.System
{
	[SugarTable("SysRolePermission", TableDescription = "角色权限")]

	public class RolePermission
	{
		/// <summary>
		/// 角色Id
		/// </summary>
		[SugarColumn(IsPrimaryKey = true, ColumnName = "RoleId", ColumnDescription = "角色Id")]
		public string? RoleId { get; set; }

		/// <summary>
		/// 权限Id
		/// </summary>
		[SugarColumn(IsPrimaryKey = true, ColumnName = "PermissionId", ColumnDescription = "权限Id")]
		public string? PermissionId { get; set; }
	}
}
